//
//  PlayMusicViewController.h
//  Khmer media
//
//  Created by Rainseylong on 2/12/13.
//  Copyright (c) 2013 imer. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PlayMusicViewController : UIViewController<UITableViewDataSource>

@property(nonatomic,strong)IBOutlet UITableView *playMusicTable;
@property(nonatomic,strong)NSArray *allSongsByAlbume;
@property int albumId;
@property(nonatomic,strong)NSURL *playMusicURL;


@property(nonatomic,strong)IBOutlet UIButton *playerNext;
@property(nonatomic,strong)IBOutlet UIButton *playerPre;
@property(nonatomic,strong)IBOutlet UIButton *playerPlay;
@property(nonatomic,strong)IBOutlet UIButton *playerRepeat;
@property(nonatomic,strong)IBOutlet UIButton *playerShuffle;

@property(nonatomic,strong)IBOutlet UILabel *durationStart;
@property(nonatomic,strong)IBOutlet UILabel *durationEnd;
@property(nonatomic,strong)UIFont *khmerFont;


@property(nonatomic,strong)IBOutlet UISlider *progressSlider;
@property(nonatomic,strong)NSTimer *progressUpdateTimer;
@property(nonatomic,strong)NSString *streamURL;
@property(nonatomic,strong)NSMutableDictionary *currentPlaySongIndex;


@property BOOL isSliderMove;
@property BOOL shuffle;
@property BOOL repeatAll;
@property BOOL repeatOne;
@property int curentSongIndex;


-(IBAction)touchPlay:(id)sender;
-(IBAction)touchNext:(id)sender;
-(IBAction)touchPre:(id)sender;
-(IBAction)touchRepeat:(id)sender;
-(IBAction)touchShuffle:(id)sender;

//- (void)progressSliderMoved:(UISlider*)sender;
- (IBAction)sliderMoved:(UISlider *)aSlider;

@end
